using UnityEngine;
using System.Collections;

namespace Perks{
	public class BackpackIncrease : Perk {
	
		public const string Name = "Backpack Increase";
		public BackpackIncrease(){
			this.equipCost = 1;
			this.description = 
				"Expands the inventory to have 30 more slots.";
			SetRequirements();
		}
		protected override void SetRequirements ()
		{
			requirements = new RequirementPair[1];
			requirements[0].baseAttribute = ATTRIBUTES.STRENGTH;
			requirements[0].requiredValue = 3;
		}
		public override string GetName ()
		{
			return Name;
		}
		public override void OnEquip (AttributeSet aSet)
		{
			aSet.AddBonusToSubAttribute(SUB_ATTRIBUTES.INVENTORY_SLOTS, 10);
		}
		public override void OnUnEquip (AttributeSet aSet)
		{
			aSet.AddBonusToSubAttribute(SUB_ATTRIBUTES.INVENTORY_SLOTS, -10);
		}
			
	}
}
